package com.gree.elasticsearch.dao;

import com.gree.elasticsearch.domain.Orange;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import javax.swing.text.html.Option;
import java.util.List;
import java.util.Optional;

/**
 * 总有刁民想害朕，请叫我小花狗
 * create by zxw on 2020/5/20
 */
public interface OrangeRepository extends JpaRepository<Orange, Integer> {
    Optional<Orange> findById(Integer id);
}
